home *** CD-ROM | disk | FTP | other *** search
- on(release){
- compl = 0;
- if(focus_is_on != 1)
- {
- j = 1;
- while(j <= Number(size))
- {
- if(compl == 1)
- {
- break;
- }
- if(eval("text" + chr(96 + j) + "_index") == focus_is_on && eval("text" + chr(96 + j) + "_index") != 1)
- {
- k = 1;
- while(k <= Number(size))
- {
- if(eval("text" + chr(96 + k) + "_index") == focus_is_on - 1)
- {
- ypos1 = getProperty("text" + j, _Y);
- ypos2 = getProperty("text" + k, _Y);
- eval("text" + k)._y = ypos1;
- eval("text" + j)._y = ypos2;
- set("text" + chr(96 + j) + "_index",focus_is_on - 1);
- set("text" + chr(96 + k) + "_index",focus_is_on);
- eval("foc" + focus_is_on)._visible = 0;
- compl = 1;
- break;
- }
- k++;
- }
- }
- j++;
- }
- focus_is_on -= 1;
- eval("foc" + focus_is_on)._visible = 1;
- }
- }
-